package com.leen.exam.controller;


import com.leen.exam.entity.Exam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value ="/exam")
public class ExamController {
    @GetMapping(value = "/data")
    public Exam data(){
        Exam exam=new Exam();
        exam.setId(1000);
        exam.setName("王毅");
        return exam;
    }
}
